﻿using DigitalHealth.PACS.Cores.Middleware.Urls;
using DigitalHealth.PACS.UnifyPortalAggregateService.Services.EquipService;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System.Net.Http;

namespace DigitalHealth.PACS.UnifyPortalAggregateService.Controllers
{
    /// <summary>
    /// 设备信息
    /// </summary>
    [Route("api/[controller]")]
    [ApiController]
    public class EquipInfoController : ControllerBase
    {
        private readonly IEquipClient equipClient;
        private readonly IDynamicMiddleUrl dynamicMiddleUrl;
        private readonly HttpClient httpClient;

        public EquipInfoController(IEquipClient equipClient, IDynamicMiddleUrl dynamicMiddleUrl, IHttpClientFactory httpClientFactory)
        {
            this.equipClient = equipClient;
            this.dynamicMiddleUrl = dynamicMiddleUrl;
            this.httpClient = httpClientFactory.CreateClient();
        }
    }
}
